import axios from './api' // 倒入 api
import config from './config.js' // 倒入默认配置
export const BASEURL = config.baseURL

/* 将所有接口统一起来便于维护
 * 如果项目很大可以将 url 独立成文件，接口分成不同的模块
 */

// 配置-医院类型-获取医院类型列表
export const GET_HOSPITALCLASS_SEARCH = (params) => {
    return axios({
        url: 'hospitalclass/search',
        method: 'GET',
        params,
    })
}

// 配置-医院类型-删除医院类型
export const DELETE_HOSPITALCLASS_INFO = (params) => {
    return axios({
        url: 'hospitalclass/delete',
        method: 'GET',
        params,
    })
}

// 配置-医院类型-新增医院类型
export const ADD_HOSPITALCLASS_INFO = (params) => {
    return axios({
        url: 'hospitalclass/add',
        method: 'POST',
        data: params,
    })
}

// 配置-医院类型-编辑医院类型
export const EDIT_HOSPITALCLASS_INFO = (params) => {
    return axios({
        url: 'hospitalclass/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-医院类型-获取医院类型详情
export const GET_HOSPITALCLASS_INFO = (params) => {
    return axios({
        url: 'hospitalclass/info',
        method: 'GET',
        params,
    })
}

// 配置-医院类型-上下架医院类型
export const STARTSTOP_HOSPITALCLASS_INFO = (params) => {
    return axios({
        url: 'hospitalclass/startstop',
        method: 'GET',
        params,
    })
}

// 配置-医生职称-获取医生职称列表
export const GET_DOCTORTITLE_SEARCH = (params) => {
    return axios({
        url: 'doctortitle/search',
        method: 'GET',
        params,
    })
}

// 配置-医生职称-新增医生职称
export const ADD_DOCTORTITLE_INFO = (params) => {
    return axios({
        url: 'doctortitle/add',
        method: 'POST',
        data: params,
    })
}

// 配置-医生职称-编辑医生职称
export const EDIT_DOCTORTITLE_INFO = (params) => {
    return axios({
        url: 'doctortitle/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-医生职称-获取医生职称详情
export const GET_DOCTORTITLE_INFO = (params) => {
    return axios({
        url: 'doctortitle/info',
        method: 'GET',
        params,
    })
}


// 配置-医生职称-删除医生职称
export const DELETE_DOCTORTITLE_INFO = (params) => {
    return axios({
        url: 'doctortitle/delete',
        method: 'GET',
        params,
    })
}

// 配置-医生职称-上下架医生职称
export const STARTSTOP_DOCTORTITLE_INFO = (params) => {
    return axios({
        url: 'doctortitle/startstop',
        method: 'GET',
        params,
    })
}

// 配置-医生职称-下拉列表
export const GET_DOCTORTITLE_OPTIONS = (params) => {
    return axios({
        url: 'doctortitle/options',
        method: 'GET',
        params,
    })
}

// 配置-口腔项目-获取口腔项目列表
export const GET_PROJECT_SEARCH = (params) => {
    return axios({
        url: 'oralcavity/project/search',
        method: 'GET',
        params,
    })
}

// 配置-口腔项目-删除口腔项目
export const DELETE_PROJECT_SEARCH = (params) => {
    return axios({
        url: 'oralcavity/project/delete',
        method: 'GET',
        params,
    })
}

// 配置-口腔项目-上下架口腔项目
export const STARTSTOP_PROJECT_SEARCH = (params) => {
    return axios({
        url: 'oralcavity/project/startstop',
        method: 'GET',
        params,
    })
}

// 配置-口腔项目-新增口腔项目
export const ADD_PROJECT_INFO = (params) => {
    return axios({
        url: 'oralcavity/project/add',
        method: 'POST',
        data: params,
    })
}

// 配置-口腔项目-新增口腔项目
export const EDIT_PROJECT_INFO = (params) => {
    return axios({
        url: 'oralcavity/project/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-口腔项目-获取口腔项目详情
export const GET_PROJECT_INFO = (params) => {
    return axios({
        url: 'oralcavity/project/info',
        method: 'GET',
        params,
    })
}

// 配置-口腔项目-获取口腔项目下拉列表
export const GET_PROJECT_OPTIONS = (params) => {
    return axios({
        url: 'oralcavity/project/options',
        method: 'GET',
        params,
    })
}

// 配置-口腔问题-获取口腔问题列表
export const GET_TROUBLE_SEARCH = (params) => {
    return axios({
        url: 'oralcavity/trouble/search',
        method: 'GET',
        params,
    })
}

// 配置-口腔问题-删除口腔问题
export const DELETE_TROUBLE_INFO = (params) => {
    return axios({
        url: 'oralcavity/trouble/delete',
        method: 'GET',
        params,
    })
}

// 配置-口腔问题-上下架口腔问题
export const STARTSTOP_TROUBLE_INFO = (params) => {
    return axios({
        url: 'oralcavity/trouble/startstop',
        method: 'GET',
        params,
    })
}

// 配置-口腔问题-新增口腔问题
export const ADD_TROUBLE_INFO = (params) => {
    return axios({
        url: 'oralcavity/trouble/add',
        method: 'POST',
        data: params,
    })
}

// 配置-口腔问题-编辑口腔问题
export const EDIT_TROUBLE_INFO = (params) => {
    return axios({
        url: 'oralcavity/trouble/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-口腔问题-获取口腔问题详情
export const GET_TROUBLE_INFO = (params) => {
    return axios({
        url: 'oralcavity/trouble/info',
        method: 'GET',
        params,
    })
}

// 配置-口腔问题-获取口腔问题下拉列表
export const GET_TROUBLE_OPTION = (params) => {
    return axios({
        url: 'oralcavity/trouble/options',
        method: 'GET',
        params,
    })
}

// 配置-特色服务-获取特色服务列表
export const GET_FEATUREDSERVICES_SEARCH = (params) => {
    return axios({
        url: 'featuredservices/search',
        method: 'GET',
        params,
    })
}

// 配置-特色服务-删除特色服务
export const DELETE_FEATUREDSERVICES_INFO = (params) => {
    return axios({
        url: 'featuredservices/delete',
        method: 'GET',
        params,
    })
}


// 配置-特色服务-上下架特色服务
export const STARTSTOP_FEATUREDSERVICES_INFO = (params) => {
    return axios({
        url: 'featuredservices/startstop',
        method: 'GET',
        params,
    })
}

// 配置-特色服务-新增特色服务
export const ADD_FEATUREDSERVICES_INFO = (params) => {
    return axios({
        url: 'featuredservices/add',
        method: 'POST',
        data: params,
    })
}

// 配置-特色服务-编辑特色服务
export const EDIT_FEATUREDSERVICES_INFO = (params) => {
    return axios({
        url: 'featuredservices/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-特色服务-获取特色服务详情
export const GET_FEATUREDSERVICES_INFO = (params) => {
    return axios({
        url: 'featuredservices/info',
        method: 'GET',
        params,
    })
}

// 配置-特色服务-获取特色服务下拉列表
export const GET_FEATUREDSERVICES_OPTIONS = (params) => {
    return axios({
        url: 'featuredservices/options',
        method: 'GET',
        params,
    })
}

// 配置-特色标签-获取特色标签列表
export const GET_FEATUREDLABEL_SEARCH = (params) => {
    return axios({
        url: 'featuredlabel/search',
        method: 'GET',
        params,
    })
}

// 配置-特色标签-删除特色标签
export const DELETE_FEATUREDLABEL_INFO = (params) => {
    return axios({
        url: 'featuredlabel/delete',
        method: 'GET',
        params,
    })
}

// 配置-特色标签-上下架特色标签
export const STARTSTOP_FEATUREDLABEL_INFO = (params) => {
    return axios({
        url: 'featuredlabel/startstop',
        method: 'GET',
        params,
    })
}

// 配置-特色标签-新增特色标签
export const ADD_FEATUREDLABEL_INFO = (params) => {
    return axios({
        url: 'featuredlabel/add',
        method: 'POST',
        data: params,
    })
}

// 配置-特色标签-编辑特色标签
export const EDIT_FEATUREDLABEL_INFO = (params) => {
    return axios({
        url: 'featuredlabel/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-特色标签-获取特色标签详情
export const GET_FEATUREDLABEL_INFO = (params) => {
    return axios({
        url: 'featuredlabel/info',
        method: 'GET',
        params,
    })
}

// 配置-特色标签-获取特色标签下拉列表
export const GET_FEATUREDLABEL_OPTIONS = (params) => {
    return axios({
        url: 'featuredlabel/options',
        method: 'GET',
        params,
    })
}

// 配置-文章分类-获取文章分类列表
export const GET_ARTICLECLASS_SEARCH = (params) => {
    return axios({
        url: 'articleclass/search',
        method: 'GET',
        params,
    })
}

// 配置-文章分类-删除文章分类
export const DELETE_ARTICLECLASS_INFO = (params) => {
    return axios({
        url: 'articleclass/delete',
        method: 'GET',
        params,
    })
}

// 配置-文章分类-上下架文章分类
export const STARTSTOP_ARTICLECLASS_INFO = (params) => {
    return axios({
        url: 'articleclass/startstop',
        method: 'GET',
        params,
    })
}

// 配置-文章分类-新增文章分类
export const ADD_ARTICLECLASS_INFO = (params) => {
    return axios({
        url: 'articleclass/add',
        method: 'POST',
        data: params,
    })
}

// 配置-文章分类-编辑文章分类
export const EDIT_ARTICLECLASS_INFO = (params) => {
    return axios({
        url: 'articleclass/edit',
        method: 'POST',
        data: params,
    })
}

// 配置-文章分类-获取文章分类详情
export const GET_ARTICLECLASS_INFO = (params) => {
    return axios({
        url: 'articleclass/info',
        method: 'GET',
        params,
    })
}

// 配置-城市管理-补充城市信息
export const SAVE_CITY_COMPLEMENT_INFO = (params) => {
    return axios({
        url: 'city/complement',
        method: 'POST',
        data: params,
    })
}